<!--
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/business/notificationform/NotificationForm.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/business/notificationform/NotificationForm.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'Id',
                footer: "Foots",
                cnName: '通知管理',
                name: 'notificationform/NotificationForm',
                url: "/NotificationForm/",
                sortName: "Id",
                foreignKey:null
            });
            const editFormFields = ref({"Content":"","OrderNumber":"","SourceOrderNumber":""});
            const editFormOptions = ref([[{"title":"通知内容","field":"Content","disabled":true,"type":"textarea"},
                               {"title":"关联单号","field":"OrderNumber","disabled":true},
                               {"title":"来源单号","field":"SourceOrderNumber","disabled":true}]]);
            const searchFormFields = ref({"Content":""});
            const searchFormOptions = ref([[{"title":"通知内容","field":"Content"}]]);
            const columns = ref([{field:'Id',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'Content',title:'通知内容',type:'string',width:110,readonly:true,align:'left',sort:true},
                       {field:'OrderNumber',title:'关联单号',type:'string',width:110,readonly:true,align:'left'},
                       {field:'SourceOrderNumber',title:'来源单号',type:'string',width:110,readonly:true,align:'left'},
                       {field:'OrderType',title:'订单类型',type:'string',width:110,align:'left'},
                       {field:'RedirectPath',title:'跳转路径',type:'string',width:180,align:'left'},
                       {field:'Enable',title:'是否启用',type:'int',width:110,hidden:true,align:'left'},
                       {field:'CreateUserName',title:'添加人',type:'string',width:110,hidden:true,align:'left'},
                       {field:'CreateUserId',title:'添加人ID',type:'string',width:110,hidden:true,align:'left'},
                       {field:'CreateDate',title:'添加时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'ModifyUserName',title:'修改人',type:'string',width:110,align:'left'},
                       {field:'ModifyUserId',title:'修改人ID',type:'string',width:110,hidden:true,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'DeletionFlag',title:'删除标识',type:'int',width:110,hidden:true,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
